package com.zeroxml.cms.service;

import com.wyvoid.core.persistent.hibernate.HibernatePage;
import com.zeroxml.cms.bo.Article;

import java.util.List;

/**
 * User: cjp
 * Date: 2007-9-9
 * Time: 19:44:48
 */
public interface IArticleService {

    Article getArticle(long id);

    void updateArticle(Article article);

    void createArticle(Article article);

    void deleteArticle(long id);

    HibernatePage<Article> getShowOnIndexArticles(int curPage, int pageSize);

    HibernatePage<Article> findArticles(long catalogId, String articleName, int curPage, int pageSize);

    HibernatePage<Article> getArticles(long tagId,int curPage,int pageSize);

    List<Article> getLatestArticles(int articleSize);

    List<Article> getRecommedArticles(long catalogId);
}
